package com.gitee.ywj1352.gasc.controller;


import com.gitee.ywj1352.gasc.pojo.vo.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class AuthController {

    @GetMapping("/sessionOut")
    public Result sessionOut(){
        log.info("do some hah....  sessionOut");
        return Result.success("时间超时");
    }

    @GetMapping("/hah")
    public Result hah(){
        log.info("do some hah....  hah");
        return new Result();
    }

    @RequestMapping("/accessDenied")
    public Result accessDenied(){
        log.info("do some hah....  accessDenied");
        return Result.success("权限不足");
    }

    @RequestMapping("/unLogin")
    public Result unLogin(){
        log.info("do some hah....  unLogin");
        return Result.success("未登录");
    }

    @GetMapping("/hah2")
    public Result hah2(){
        log.info("do some hah.... hah2");
        return new Result();
    }
}
